package com.baor.controller;

import com.baor.service.BalanceReconciliationService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/balanceReconciliation")
public class BalanceReconciliationController {

    @Autowired
    private BalanceReconciliationService reconciliationService;

    /**
     * 生成对账记录
     */
//    @RequestMapping("/generate")
//    public R generate(@RequestBody Map<String, Object> params) {
//        return reconciliationService.generateReconciliation(params);
//    }

    /**
     * 查询对账记录列表
     */
    @RequestMapping("/list")
    public R list(Map<String, Object> params) {
        return reconciliationService.getReconciliationList(params);
    }

    /**
     * 处理异常对账记录
     */
//    @RequestMapping("/handleAbnormal")
//    public R handleAbnormal(@RequestBody Map<String, Object> params) {
//        return reconciliationService.handleAbnormalRecord(params);
//    }
}